﻿using System.ComponentModel.Design;
using Microsoft.VisualStudio.Shell;
using Red.Scripts.Legacy;

namespace Red.Scripts
{
    [ProvideLanguageService( typeof( LanguageInfo ), LanguageInfo.LanguageName, 100, RequestStockColors = true, ShowDropDownOptions = true, ShowSmartIndent = true )]
    [ProvideLanguageExtension( typeof( LanguageInfo ), ".script" )]
    [ProvideLanguageExtension( typeof( LanguageInfo ), ".ws" )]
    [ProvideService( typeof( LanguageInfo ), ServiceName = "Red Scripts Language Debug Info Service" )]
    public partial class RedScriptsPackage
    {
        private void InitializeLegacy()
        {
            IServiceContainer serviceContainer = this as IServiceContainer;
            LanguageInfo info = new LanguageInfo();
            serviceContainer.AddService( typeof( LanguageInfo ), info, true );
        }
    }
}
